package com.xnyzc.lhy.mis.entity.driver.wallet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 用户钱包记录表
*
* @author zhuyubin
* @since 2019-08-12
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaDWalletRecord对象", description="用户钱包记录表")
public class OaDWalletRecord implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="record_id", type = IdType.INPUT)
    private Long recordId;

    @ApiModelProperty(value = "用户ID")
    private Long driverId;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "实际金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "交易类型（0余额收入、1余额支出、2：微信收入、3：微信支出、4：支付宝收入、5：支付宝支出、6：提现）")
    private Integer recordType;

    @ApiModelProperty(value = "交易是否成功(0支付中、1支付成功、2支付失败)")
    private Integer isTransaction;

    @ApiModelProperty(value = "交易时间")
    private Date transactionTime;

    @ApiModelProperty(value = "交易凭证号")
    private String transactionOrderNo;

    @ApiModelProperty(value = "交易流水号")
    private String transactionSerialNo;

    @ApiModelProperty(value = "交易地址")
    private String transactionAddress;

    @ApiModelProperty(value = "费用说明")
    private String amountRemark;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String RECORD_ID = "record_id";

    public static final String DRIVER_ID = "driver_id";

    public static final String ORDER_NO = "order_no";

    public static final String AMOUNT = "amount";

    public static final String RECORD_TYPE = "record_type";

    public static final String IS_TRANSACTION = "is_transaction";

    public static final String TRANSACTION_TIME = "transaction_time";

    public static final String TRANSACTION_ORDER_NO = "transaction_order_no";

    public static final String TRANSACTION_SERIAL_NO = "transaction_serial_no";

    public static final String TRANSACTION_ADDRESS = "transaction_address";

    public static final String AMOUNT_REMARK = "amount_remark";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
